cmake_minimum_required(VERSION 3.0.0)
project(ORM VERSION 0.1.0)

#设置为c++11
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
#测试
#include(CTest)
#enable_testing()

#打包
# set(CPACK_PROJECT_NAME ${PROJECT_NAME})
# set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
# include(CPack)

#引入头文件
include_directories("${PROJECT_SOURCE_DIR}/Include")
#引入源文件
aux_source_directory(./Src SrcFiles)


find_library(mysql mysqlclient)
link_libraries(${mysql})

#指定文件入口
set(APP_SRC main.cpp)
#指定生成目录
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
#指定生成文件名
add_executable(${PROJECT_NAME} ${APP_SRC} ${SrcFiles})
